import request from '@/utils/request';

export function getUser(params) {
    return request({
      url: '/ap/app/getInfo',
      method: 'get',
      params,
      headers: { showLoading :true}
    })
  }
  export function reg(data) {
    return request({
      url: '/ap/app/register',
      method: 'post',
      data,
      headers: { showLoading :true}
    })
}
export function login(data) {
    return request({
      url: '/ap/app/login',
      method: 'post',
      data,
      headers: { showLoading :true}
    })
  }